<?php

/**
 * PedidoProducto form.
 *
 * @package    zing
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */



//                    _____                          _            _       
//                   |  ___|__  _ __ _ __ ___  _   _| | __ _ _ __(_) ___  
//                   | |_ / _ \| '__| '_ ` _ \| | | | |/ _` | '__| |/ _ \ 
//                   |  _| (_) | |  | | | | | | |_| | | (_| | |  | | (_) |
//                   |_|  \___/|_|  |_| |_| |_|\__,_|_|\__,_|_|  |_|\___/ 

class PedidoProductoForm extends BasePedidoProductoForm
{
  public function configure()
  {
      unset($this['updated_at']);
      unset($this['created_at']); 
      
      
      $this->widgetSchema['cantidad']->setAttribute('size','2');
      $this->widgetSchema['idProducto']->setAttribute("class","combobox");      
      
      
      $this->validatorSchema['idPedido']->setOption('required',false);
      
      $this->widgetSchema['idPedido'] = new sfWidgetFormInputHidden();      
      //$this->setDefault('idPedido',1);
      //$this->setDefault('idProducto',1);
      $this->setDefault('cantidad',0);      
}
}
